/*
 * 作者:熊猫
 * 日期:2017 - 3 - 8 10 - 57 - 39
 *
 */

package net.lainiao.morethread.Chapter3.demo2;
public class Job implements Runnable {
    private PrintQueue printQueue;

    public Job(PrintQueue printQueue) {
        this.printQueue = printQueue;
    }

    @Override
    public void run() {
        printQueue.printJob(new Object());
    }
}
